<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inicio de Sesion </title>
<link rel="stylesheet" type="text/css" href="plantilla.css" media="all"/>
		<link rel="stylesheet" href="tabs.css" type="text/css" media="all">

		<script src="scriptaculous/lib/prototype.js" type="text/javascript"></script>
		<script src="scriptaculous/src/effects.js" type="text/javascript"></script>
		<script type="text/javascript" src="fabtabulous.js"></script>
        <script type="text/javascript" src="fabtabulous1.js"></script>
		<script type="text/javascript" src="validation.js"></script>	
                <script type="text/javascript" src="scripts.js" language="javascript"></script>
<!-- plantilla de formularios -->

<script type="text/javascript" src="plantilla2/scripts/wufoo.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="plantilla2/css/structure.css" type="text/css" />
<link rel="stylesheet" href="plantilla2/css/form.css" type="text/css" />
<link rel="stylesheet" href="plantilla2/css/theme.css" type="text/css" />
</head>

<body>
<%
con=Server.CreateObject("ADODB.Connection");
con.Open("Provider=MSDASQL;DSN=mysql;UID=root;PWD=");

sql2="select * from usuario where usuario='"+Request.Form("correo")+"' and password_2='"+Request.Form("pass")+"'";

rs=con.execute(sql2);
	
	if(!rs.EOF)
	{  
			 %>
				<script type='text/javascript'>redireccionar('registro_cliente.asp',80);</script>
	
				<%
	}
	else
	{	%>
		 	<script type='text/javascript'>redireccionar('index.html',80);</script>
            <%
	}
	
	con.Close
%>
</body>
</html>
